STEP 5: Our captain is too big for the scene we want to build! Let's shrink it down!

You can control the size of a sprite using .set_size(). We use a number less than 1 to make our sprite smaller.

A number that has fractional or decimal parts is called a float. 0.5 is a float, not an integer!

  • Click on and drag out Set Size. Drop it below the line that creates your sprite.
  • Change the variable name in front of .set_size(0.5) from sprite to captain.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)